package com.zhuliwei.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * 文章vo
 *
 * @author 朱力维
 * @time 2022/10/9 10:15
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ArticleVo {
    @ExcelIgnore
    private String id;
    @ExcelProperty("文章标题")
    private String title;
//    @ExcelProperty("文章内容")
//    private String content;
    @ExcelProperty("状态0已发布1草稿")
    private String status;
    @ExcelProperty("文章摘要")
    private String summary;
    @ExcelProperty("文章类型")
    private String type;
    //是否置顶（0否，1是）
    @ExcelProperty("是否置顶0：否1：是")
    private String isTop;
    //所属分类名
    @ExcelProperty("所属分类名")
    private String categoryName;
    //所属分类Id
    private String categoryId;
    //缩略图
    @ExcelIgnore
    private String thumbnail;
    //访问量
    @ExcelProperty("访问量")
    private Long viewCount;
    @ExcelProperty("点赞数")
    private Long likeCount;
    @ExcelProperty("标签")
    private List<String> tags;
    @ExcelProperty("创建时间")
    private Date createTime;

}

